<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class RoomElectricityMeter extends Model
{
    //
    protected $table = 'RoomElectricityMeter';
    protected $pk = 'ID';
    protected $schema = [
        'ID'                        => 'bigint',
        'room_num'                  => 'bigint',
        'electricity_meter'         => 'bigint',
        'create_time'               => 'datetime',
        'update_time'               => 'datetime',
    ];




    public function test_add($data)
    {
        $data = 101;
        $REM = new RoomElectricityMeter;
        $data = $REM->where('room_num', 101)->find();
        if($data->count()){
            //
        }

    }


    public function test() {
        return "nihao";
    }
}
